package xyz.zhouzhaodong.crm.service;

import xyz.zhouzhaodong.crm.dto.LeaveAbsenceDto;
import xyz.zhouzhaodong.crm.entity.LeaveAbsence;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.zhouzhaodong.crm.entity.LeaveAbsence;
import xyz.zhouzhaodong.crm.util.RestMessage;

/**
 * <p>
 * 请假 服务类
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-21
 */
public interface ILeaveAbsenceService extends IService<LeaveAbsence> {
    
    /**
     * 新增请假
     * @param leaveAbsence
     * @return
     */
    RestMessage addLeaveAbsence(LeaveAbsence leaveAbsence);

    /**
     * 删除请假
     * @param leaveAbsence
     * @return
     */
    RestMessage deleteLeaveAbsence(LeaveAbsence leaveAbsence);

    /**
     * 修改请假
     * @param leaveAbsence
     * @return
     */
    RestMessage updateLeaveAbsence(LeaveAbsence leaveAbsence);

    /**
     * 查询请假
     * @param leaveAbsenceDto
     * @return
     */
    RestMessage selectLeaveAbsence(LeaveAbsenceDto leaveAbsenceDto);
    
}
